# 基础数据类型注解
n1: int = 10
n2: float = 10
is_pass: bool = True
name: str = "燕赤霞"


# 定义类Cat
class Cat:
    pass


# 实例化对象类型注解
# 这其实跟java是一样的,而且在这里也是完全的属于多此一举 ， 定义变量的类型
cat: Cat = Cat()

# 容器类型注解
# my_list: list = [100, 200, 300]
# my_tuple: tuple = ("run", "sing", "fly")
# my_set: set = {"jack", "tim", "hsp"}
# my_dict: dict = {"no1": "北京", "no2": "上海"}

# 容器详情类型注解
my_list: list[int] = [100, 200, 300]
# 非常鸡肋 基本上不会去使用
my_tuple: tuple[str, str, str] = ("run", "sing", "fly")
my_set: set[str, str, str] = {"jack", "tim", "hsp"}
my_dict: dict[str , int] = {"no1": "北京", "no2": "上海"}

#注释中使用注解
n3 = 89.3#type:float
my_list3 = [100 , 200 , 300]#type:list
email="hsp@souhu.com" #type:str




